package com.trendytech.aidata.configuration;

import org.apache.flink.api.java.utils.ParameterTool;

public class Demo {
    public static void main(String[] args) {
        // 从命令行参数中创建 ParameterTool 对象
        ParameterTool params = ParameterTool.fromArgs(args);

        // 获取指定参数的值
        String inputPath = params.get("input");
        String outputPath = params.get("output");

        // 打印参数值
        System.out.println("Input path: " + inputPath);
        System.out.println("Output path: " + outputPath);
    }
}
